home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / standards / CCITT / 1992 / X / x32_2.asc < prev    next >
Encoding:
Text File  |  1993-07-15  |  66.8 KB  |  1,350 lines

  1.          5      Link access procedure across the DTE/DCE interface
  2.          5.1    Introduction
  3.                This section specifies the mandatory and  optional  link  layer  procedures
  4.          that are employed to support switched access data interchange between a DCE and a
  5.          DTE.
  6.          5.1.1  Compatibility with the ISO balanced classes of procedure
  7.                The switched access link layer procedures defined  in  this  Recommendation
  8.          use the principles and terminology of the High-level  Data  Link  Control  (HDLC)
  9.          procedures specified by the International Organization for Standardization.
  10.                DCE compatibility of operation with the ISO balanced classes  of  procedure
  11.          (Class BA with options 2 and 8 and Class BA with options 2, 8 and 10) is achieved
  12.          using the LAPB procedure described in SS 2.2,  2.3,  and  2.4  of  Recommendation
  13.          X.25. Class BA with options 2 and 8 (LAPB modulo 8) is available in all  networks
  14.          for switched access.
  15.                Class BA with options 2, 8 and 10 (LAPB modulo 128)  may  also  be  offered
  16.          for switched access by some networks.
  17.                Note - The operating conditions under which modulo 128  sequence  numbering
  18.          applies are left for further study.
  19.                Class BA 1, 2 8 and Class BA 1, 2, 8, 10 provide for the additional use  of
  20.          the unnumbered format Exchange Identification (XID) command  and  response.  This
  21.          additional capability may be used in the performance  of  DTE/DCE  identification
  22.          and authentication and in the selection of X.32 optional user facilities  (see  S
  23.          7.2) by the application of the proposed HDLC standard - General purpose XID frame
  24.          information field content and format (Draft ISO International Standard 8885).
  25.          5.1.2  Underlying transmission facility
  26.                The underlying transmission facility is duplex or, optionally,  half-duplex
  27.          (see S 2.8). Specific procedures are defined  in  S  5.6  for  operation  over  a
  28.          half-duplex transmission facility.
  29.          5.2    Link layer address assignment
  30.                Two alternative mechanisms for  assigning  the  link  layer  addresses  are
  31.          included in the procedures of this Recommendation.  The  conditions  under  which
  32.          each mechanism applies  are  specified  in  the  link  layer  address  assignment
  33.          attribute (see S 3.1.12).
  34.                It  should  be  noted  that  the  alternative  mechanisms  result  in   the
  35.          assignment of identical values in dial-in-by-the-DTE operation.
  36.          5.2.1  Assignment depending on switched access call direction
  37.                In accordance with Recommendation T.70, link layer address  assignment  for
  38.          dial-in-by-the-DTE and dial-out-by-the-PSPDN operation depends on  the  direction
  39.          of the switched access call as specified in Table 5/X.32.
  40.                The DCE is always aware of whether the switched access path is  established
  41.          by the DTE (dial-in-by-the-DTE) or the DCE (dial-out-by-the-PSPDN). The DTEs that
  42.          are not or cannot be aware of  this  situation  shall  initiate  the  appropriate
  43.          address resolution procedures to determine the individual  address  of  the  DCE.
  44.          These procedures are left for further study. However, it is intended  that  these
  45.          procedures will not affect DTEs using the link level address assignment described
  46.          in Table 5/X.32.
  47.                                                 TABLE 5/X.32
  48.                                         Link layer address assignment
  49.                                               Station 1
  50.                                     Link layer address assignment
  51.                                                Calling A           Called B
  52.                                                               
  53.                          Command                   B                 A
  54.                          Response                  A                 B
  55.                        Note - For dial-in-by-the-DTE, the DTE  is  calling  A;
  56.                        for dial-out-by-the-PSPDN, the DCE is calling A.
  57.          5.2.2  Assignment depending on roles of equipment as DTE and DCE
  58.                In accordance with the specifications in S 2.4.2  of  Recommendation  X.25,
  59.          the link layer address assignment depends on the roles of the  equipment  as  DTE
  60.          and DCE such that the DCE transmits to the DTE the address A  in  command  frames
  61.          and the address B in  response  frames  and  the  DTE  does  the  opposite  (i.e.
  62.          transmits to the DCE address B in  command  frames  and  address  A  in  response
  63.          frames).
  64.          5.3    Use of exchange identification (XID) frames
  65.          5.3.1  General
  66.  
  67.  
  68.  
  69.  
  70.                                                        Fascicle VIII.2 - Rec. X.32   PAGE1
  71.  
  72.                XID frames may be used by the DCE and DTE in the performance of either  DTE
  73.          or DCE identification and authentication, and/or by the DTE  and  DCE  to  convey
  74.          X.32 optional user facilities (see S 7.2).
  75.                Note - The use of the XID command/response for address negotiation and  the
  76.          negotiation of link layer parameters is left for further study.
  77.          5.3.1.1   XID command
  78.                The XID command is used by the DTE/DCE to cause  the  DCE/DTE  to  identify
  79.          itself, and, optionally, to provide DTE/DCE identification and/or characteristics
  80.          to the DCE/DTE. An information field is optional with the XID command.
  81.          5.3.1.2   XID response
  82.                The XID response is used by the DTE/DCE to  reply  to  a  XID  command.  An
  83.          information field containing the DTE/DCE  identification  and/or  characteristics
  84.          may be optionally present in the XID response.
  85.          5.3.2  Format of XID frame
  86.                The format of the address field of the XID frame is as  defined  in  S  5.2
  87.          above.
  88.                The format of the control field of the XID frame is given in Table 6/X.32.
  89.                Note - The first bit transmitted is bit 1, the low order bit.
  90.                                    TABLE 6/X.32      (traité comme figure)
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.          PAGE18  Fascicle VIII.2 - Rec. X.32
  142.  
  143.                After the XID control field there may be  an  XID  information  field.  The
  144.          general format of the XID information field, when present,  is  shown  in  Figure
  145.          4/X.32.
  146.  
  147.                                         FIGURE 4/X.32  - T0706470-88
  148.  
  149.                The XID information field is composed  of  a  number  of  subfields.  These
  150.          subfields are a format identifier (FI) subfield, several layer subfields,  and  a
  151.          user data subfield.
  152.                The FI subfield is a fixed one-octet field. This field is encoded  to  have
  153.          a capacity  of  designating  128  different  ISO  standardized  formats  and  128
  154.          different user-defined formats. The format identifier in this  Recommendation  is
  155.          one of the ISO standardized format identifiers. The FI  subfield  is  present  if
  156.          there is a layer subfield and/or a user data subfield present.  The  FI  subfield
  157.          need not be present if there is no layer subfield or data user subfield  present.
  158.          The format identifier is encoded as shown in Figure 5/X.32.
  159.                                          FIGURE 5/X.32  T0706480-88
  160.  
  161.                The layer subfields are permitted to be present in  the  information  field
  162.          of either XID command or XID response frames  for  the  purposes  of  link  layer
  163.          address resolution and  link  level  parameter  negotiation.  The  use  of  these
  164.          subfields within the scope of this Recommendation is left for further study.
  165.                The  user  data  subfield  contains  data  link  user  information  to   be
  166.          transferred  during  XID  interchange.  This  data  link  user   information   is
  167.          transported transparently across the data link and passed to the user of the data
  168.          link. The user data subfield is composed  of  the  two  elements  illustrated  in
  169.          Figure 6/X.32.
  170.                                          FIGURE 6/X.32  t0706490-88
  171.  
  172.                The user data identifier element identifies the subfield as the  user  data
  173.          subfield. Its encoding is shown in Figure 7/X.32.
  174.                                         FIGURE 7/X.32 -- T0706500-88
  175.  
  176.                The length of the user data field is the number of octets between the  user
  177.          data identifier and the frame check sequence of the  XID  frame.  The  user  data
  178.          field element contains the X.32 identification protocol elements or X.32 optional
  179.          user facilities which are described in S 7 (see Table 9/X.32).
  180.                In the scope of this Recommendation, the user data subfield should only  be
  181.          used in XID command frames, and while in the disconnected phase.
  182.                Since the use of layer subfields is for further study within the  scope  of
  183.          this Recommendation, the format of the  information  field  of  the  XID  command
  184.          frames is summarized in Figure 8/X.32.
  185.                                          FIGURE 8/X.32   T0706510-88
  186.  
  187.          5.3.3  XID procedures for identification and X.32 optional user facilities
  188.          5.3.3.1   General
  189.                When a DTE/DCE determines that it is not able to act upon  a  received  XID
  190.          command, it will consider this XID command as not implemented  and  will  act  as
  191.          specified in Recommendation X.25 (see Recommendation X.25, S  2.4.4.4.1  for  the
  192.          disconnected phase, and  Recommendation  X.25,  S  2.4.6.1  for  the  information
  193.          transfer phase).
  194.                When a DTE/DCE determines that it is  able  to  act  upon  a  received  XID
  195.          command, it shall process this command and acknowledge it by transmitting an  XID
  196.          response with the F bit set to the value of the P bit received in the XID command
  197.          in any phase (disconnected phase or information transfer phase).  The  DCE  shall
  198.          and the DTE should set the P bit to 1 in the XID command frame.
  199.                For purposes of this Recommendation, the user data subfield shall  only  be
  200.          used in XID command and while in the disconnected phase.  A  user  data  subfield
  201.          will be ignored by the DCE when received in an XID response and/or while  in  the
  202.          information transfer phase.
  203.                When transmitting an XID command, the DTE/DCE shall start timer  T1.  Timer
  204.          T1 is stopped upon reception of the XID response with the F bit set to the  value
  205.          of the P bit sent in the XID command.
  206.                If timer T1 expires before the XID response (which has the  F  bit  set  to
  207.          the value of the P bit sent in the XID command) is received by the  DTE/DCE,  the
  208.  
  209.  
  210.  
  211.  
  212.                                                        Fascicle VIII.2 - Rec. X.32   PAGE1
  213.  
  214.          DTE/DCE retransmits the XID command and restarts timer T1. The maximum number  of
  215.          attempts made by the DTE or DCE to complete successful transmission  of  the  XID
  216.          command is defined by N2.
  217.          5.3.3.2   Identification, authentication and  selection  of  X.32  optional  user
  218.                facilities using XID frames
  219.                The reception of an XID  response  by  the  DTE/DCE  only  means  that  the
  220.          corresponding XID command has been correctly received  by  the  DCE/DTE.  If  the
  221.          DCE/DTE needs to transmit an identification protocol element or an X.32  facility
  222.          element to the DTE/DCE, it shall transmit the element in an XID command.
  223.                Following  successful  identification/authentication  and/or  selection  of
  224.          X.32 optional user facilities using an XID exchange(s), the  data  link  will  be
  225.          established under normal LAPB procedures (see S 5.4.1). If these  procedures  are
  226.          not successful, the switched access path is disconnected (see S 5.4.2).
  227.                The identification of the DTE and/or DCE remains in effect until  the  link
  228.          layer or the switched access path is disconnected.
  229.          5.4    Link set-up disconnection
  230.          5.4.1  Link set-up
  231.                The initiative of  the  link  set-up  is  in  the  charge  of  the  DTE  in
  232.          dial-in-by-the-DTE operation and of the DCE in  dial-out-by-the-PSPDN  operation.
  233.          The DCE  may  also  initiate  link  set-up  in  the  case  of  dial-in-by-the-DTE
  234.          operation; likewise, the DTE may  also  initiate  link  set-up  in  the  case  of
  235.          dial-out-by-the-PSPDN operation.
  236.                When receiving a Set Asynchronous Balanced Mode (SABM) or Set  Asynchronous
  237.          Balanced Mode Exteded (SABME) (if supported) command  during  the  identification
  238.          procedure with XID frames, the DCE/DTE shall consider that the DTE/DCE  does  not
  239.          want to complete the identification procedure. The DTE/DCE may  then  accept  the
  240.          link set-up initiation or may disconnect the link and the switched  access  path,
  241.          depending on  whether  or  not  the  DCE/DTE  considers  the  completion  of  the
  242.          identification process as mandatory.
  243.                During the period between transmitting an SABM/SABME command and  receiving
  244.          the UA response, the DCE/DTE shall  discard  any  frame  (including  XID)  except
  245.          SABM/SABME, Disconnect (DISC), Unnumbered Acknowledge (UA) and Disconnected  Mode
  246.          (DM) as specified in S 2.4.4.1 of Recommendation X.25.
  247.          5.4.2  Disconnection
  248.                Whenever the DCE needs to disconnect the switched acces path and  the  link
  249.          is not already in the disconnected phase, it should first disconnect the link.
  250.          5.5    Multilink
  251.                The need for multilink procedures over switched access paths  is  left  for
  252.          further study.
  253.          5.6    Half-duplex operation
  254.                Figure  9/X.32  shows  the  half-duplex  transmission  module  (HDTM)   for
  255.          extending LAPB for operation over the PSTN where half-duplex circuits  are  used.
  256.          The signals which the two LAPX modules use in controlling the  direction  of  the
  257.          line are described.
  258.                Before the HDTM begins operation the physical circuit must  be  established
  259.          by the appropriate PSTN call control procedures. The HDTM in the DTE or DCE which
  260.          has established the switched  access  path  will  initially  have  the  right  to
  261.          transmit. The DTE or DCE  which  originated  the  switched  access  path  is  the
  262.          "calling DTE/DCE". The other DTE or DCE is the "called DTE/DCE".
  263.                                         FIGURE 9/X.32  - T0706520-88
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.          PAGE18  Fascicle VIII.2 - Rec. X.32
  284.  
  285.                5.6.1  Right to transmit
  286.                The purpose of the HDTM is to coordinate the use of  the  half-duplex  line
  287.          between the DTE and DCE. It must exchange signals with the remote HDTM,  interact
  288.          with LAPB, and direct the physical level. The HDTM  has  the  responsibility  for
  289.          deciding when to give up the right to transmit.
  290.                The right to transmit is exchanged between the DTE and  DCE  by  using  the
  291.          idle channel state condition and flags as signals.  Initially,  the  DTE  or  DCE
  292.          which initiated establishing the physical connection has the right  to  transmit.
  293.          That DTE or DCE sends the idle channel  state  condition  when  it  has  finished
  294.          transmitting frames. After the line has been turned  around,  the  other  DTE/DCE
  295.          sends flags to confirm the exchange of the right to  transmit,  until  it  has  a
  296.          frame to send. If the confirmation is not received in a certain amount  of  time,
  297.          the DTE or DCE which gave up the right to transmit may take it again  by  sending
  298.          flags.
  299.                Note - If no frame is sent, at  least  five  flags  must  be  sent  as  the
  300.          minimum signal between receiving the  right  to  transmit  and  relinquishing  it
  301.          again.
  302.                The meaning of the idle channel state condition in this  Recommendation  is
  303.          different from that of Recommendation X.25. As a result, the T3  timer  does  not
  304.          apply to half-duplex operation.
  305.                An optional  alternative  to  the  detection  of  the  idle  channel  state
  306.          condition is to use the detection of the carrier going OFF as the signal that the
  307.          sending device is giving up the right to transmit. Also, an optional  alternative
  308.          to the detection of flags is to use the detection of the carrier going ON as  the
  309.          signal  that  the  remote  device  has  accepted  the  right  to  transmit.  This
  310.          alternative behavior should only  be  used  with  modems  that  give  substantial
  311.          protection from transient errors on the line.
  312.                In those situations  where  the  physical  layer  cannot  detect  that  the
  313.          connection has been cut-off, an optional procedure, which detects the absence  of
  314.          any activity over a period of time and then disconnects the link, should be used.
  315.          5.6.2  Layer relationships
  316.                In adapting LAPB for half-duplex operation, modifications  have  been  kept
  317.          to a minimum. However, there is a functional requirement that  the  HDTM  inhibit
  318.          LAPB from sending frames during certain phases of the half-duplex procedure.  The
  319.          means of accomplishing this  functional  requirement  are  not  defined  in  this
  320.          Recommendation. Some considerations in implementing the  HDTM  are  discussed  in
  321.          Appendix I.
  322.                The logical relationships among LAPB, the HDTM, and the physical layer  are
  323.          as shown in Figure 10/X.32.
  324.                                         FIGURE 10/X.32  - T0706530-88
  325.  
  326.          5.6.3  State definitions
  327.                Five states of the HDTM are defined for describing the  procedure  used  to
  328.          keep track of the right to transmit.
  329.          5.6.3.1   Idle state (state 0)
  330.                The DTE/DCE is in an inactive state. This is the  initial  state  prior  to
  331.          the establishment  of  the  switched  access  path  and  the  final  state  after
  332.          termination of the switched access path.
  333.          5.6.3.2   Half-duplex sending state (state 1)
  334.                The DTE/DCE is  in  a  half-duplex  sending  state,  so  that  all  signals
  335.          generated by LAPB are passed to the physical layer. The  calling  DTE/DCE  enters
  336.          this state upon establishment of the switched access path.
  337.          5.6.3.3   Wait for receiving state (state 2)
  338.                The DTE/DCE is waiting for  an  indication  that  the  remote  DTE/DCE  has
  339.          entered the half-duplex sending state. No signals generated by LAPB are passed to
  340.          the physical layer.
  341.          5.6.3.4   Half-duplex receiving state (state 3)
  342.                The DTE/DCE is in  a  half-duplex  receiving  state,  so  that  no  signals
  343.          generated by LAPB are passed  to  the  physical  layer.  The  remote  DCE/DTE  is
  344.          considered to be in the half-duplex sending state. The called DTE/DCE enters this
  345.          state upon establishment of the switched access path.
  346.          5.6.3.5   Wait for sending state (state 4)
  347.                The DTE/DCE is awaiting indication of  the  availability  of  the  physical
  348.          layer for transmission of frames to the remote DCE/DTE. Flag, idle channel  state
  349.          condition, and abort signals are passed to the physical  layer,  but  sending  of
  350.  
  351.  
  352.  
  353.  
  354.                                                        Fascicle VIII.2 - Rec. X.32   PAGE1
  355.  
  356.           frames is inhibited.
  357.           5.6.4  Timer XT1
  358.                 A timer, XT1, is defined for use in recovering from an apparent failure  of
  359.           the remote DTE/DCE to take the right to transmit. To avoid a contention condition
  360.           during this recovery process, different values of timer XT1 are to be used by the
  361.           called and calling DTE/DCE. A calling DTE/DCE uses the value XT1 a, and a  called
  362.           DTE/DCE uses the value XT1 b.
  363.                 The values of XT1a and XT1b are system parameters and have  been  left  for
  364.           further study.
  365.           5.6.5  Counter XC1
  366.                 An optional counter, XC1, is  defined  for  use  in  determining  that  the
  367.           connection has been cut-off. It is incremented when the DTE or DCE is  given  the
  368.           right to transmit or seizes the right to transmit and has not received a frame or
  369.           at least five continuous flags. This counter  is  decremented  if  its  value  is
  370.           greater than zero and the flags or a frame have been  received.  If  the  counter
  371.           reaches a certain level, the switched call is assumed to be cut-off. The  minimum
  372.           value of this cut-off level is four.
  373.           5.6.6  State diagram and descriptions
  374.                 The state diagram shown in Figure 11/X.32 describes the procedure  used  by
  375.           the HDTM for controlling the right to transmit. The number in each ellipse is the
  376.           state reference number. The transitions are caused by interactions  between  LAPB
  377.           and the HDTM, interactions between the HDTM and the physical layer, signals  from
  378.           the remote HDTM, and timer expiration within the HDTM.
  379.           5.6.7  State definitions expressed in terms applicable to a modem interface
  380.                 Taking the use of the HDTM with a V-series modem interface as  an  example,
  381.           the following expressions of the state definitions can be made:
  382.           5.6.7.1   Idle state (state 0)
  383.                 Circuit 107 is OFF. Circuit 105 is OFF.  LAPB  is  inhibited  from  sending
  384.           frames and is disconnected from circuit 103.
  385.                                          FIGURE 11/X.32  - T0706540-88
  386.  
  387.           5.6.7.2   Half-duplex sending state (state 1)
  388.                 Circuit 105, circuit 106 and circuit 107  are  ON.  LAPB  is  connected  to
  389.           circuit 103 and enabled to send frames.
  390.           5.6.7.3   Wait for receiving state (state 2)
  391.                 Circuit 107 is ON, circuit 105 is  OFF.  LAPB  is  inhibited  from  sending
  392.           frames and disconnected  from  circuit  103,  which  is  held  in  the  binary  1
  393.           condition. Timer XT1 is running.
  394.           5.6.7.4   Half-duplex receiving state (state 3)
  395.                 Circuit 107 is ON, circuit 105 is  OFF.  LAPB  is  inhibited  from  sending
  396.           frames and disconnected  from  circuit  103,  which  is  held  in  the  binary  1
  397.           condition.
  398.           5.6.7.5   Wait for sending state (state 4)
  399.                 Circuit 105 and circuit 107 are  ON,  and  circuit  106  is  OFF.  LAPB  is
  400.           connected to circuit 103 but is inhibited from sending frames.
  401.           5.6.8  Table of transitions between states expressed in  terms  applicable  to  a
  402.                  modem interface
  403.                 Continuing the example, Table 7/X.32 shows, in terms of  a  V-series  modem
  404.           interface, the events that cause a state transition and the resulting action(s).
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.           PAGE18  Fascicle VIII.2 - Rec. X.32
  426.  
  427.                                                  TABLE 7/X.32
  428.                     Description of state transitions in terms of a V-series modem interface
  429.                                                 Transition name                 
  430.                            Pr          Event                  Action               New state
  431.                            es  
  432.                            en  
  433.                            t   
  434.                            st  
  435.                            at  
  436.                             e   
  437.                             0            Initialize calling DTE/DCE                     4
  438.                                  Calling DTE/DCE:        Turn circuit 105 ON.    Wait for sending 
  439.                            Id   circuit 107 ON          Connect LAPB to         state
  440.                            le                           circuit 103.            
  441.                            st   
  442.                            at   
  443.                            e    
  444.                             0             Initialize called DTE/DCE                      2
  445.                                  Called DTE/DCE:         Start timer XT1.        Wait for receiving 
  446.                            Id   circuit 107 ON                                  state
  447.                            le   
  448.                            st   
  449.                            at   
  450.                            e    
  451.                             1              Send right to transmit                       2
  452.                                  Transmission            Inhibit sending of      Wait for receiving 
  453.                            Ha   concluded (see Note     LAPB frames.            state
  454.                            lf   1)                      Disconnect LAPB from    
  455.                            -d                           circuit 103. Hold       
  456.                            up                           circuit 103 in the      
  457.                            le                           binary 1 condition.     
  458.                            x                            Turn circuit 105 OFF    
  459.                            se                           (see Note 2). Start     
  460.                            nd                           timer XT1.              
  461.                            in   
  462.                            g    
  463.                            st   
  464.                            at   
  465.                            e    
  466.                             1            Disconnect sending DTE/DCE                     0
  467.                                 
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.                                                         Fascicle VIII.2 - Rec. X.32   PAGE1
  497.  
  498.                            Ha    LAPB has entered a      Turn circuits 105       Idle state
  499.                            lf   disconnected phase      and 107 OFF.            
  500.                            -d   
  501.                            up   
  502.                            le   
  503.                            x    
  504.                            se   
  505.                            nd   
  506.                            in   
  507.                            g    
  508.                            st   
  509.                            at   
  510.                            e    
  511.                             2               Receive confirmation                        3
  512.                                  Reception of a flag     Stop timer XT1.         Half-duplex 
  513.                            Wa   or detection of                                 receiving state
  514.                            it   carrier ON (see Note    
  515.                            fo   3)                      
  516.                            r    
  517.                            re   
  518.                            ce   
  519.                            iv   
  520.                            in   
  521.                            g    
  522.                            st   
  523.                            at   
  524.                            e    
  525.                             2              Seize right to transmit                       4
  526.                                  Expiry of timer XT1     Turn circuit 105 ON.    Wait for sending 
  527.                            Wa                           Release circuit 103     state
  528.                            it                           from binary 1           
  529.                            fo                           condition. Connect      
  530.                            r                            LAPB to circuit 103.    
  531.                            re   
  532.                            ce   
  533.                            iv   
  534.                            in   
  535.                            g    
  536.                            st   
  537.                            at   
  538.                            e    
  539.                             3             Receive right to transmit                      4
  540.                                  Reception of 15         Turn circuit 105 ON.   Wait for sending 
  541.                            Ha   continuous 1 bits or    Release circuit 103     state
  542.                            lf   detection of carrier    from binary 1           
  543.                            -d   OFF (see Note 4 and     condition. Connect      
  544.                            up   5)                      LAPB to circuit 103.    
  545.                            le   
  546.                            x    
  547.                            re   
  548.                            ce   
  549.                            iv   
  550.                            in   
  551.                            g    
  552.                            st   
  553.                            at   
  554.                            e    
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.           PAGE18  Fascicle VIII.2 - Rec. X.32
  568.  
  569.                                             TABLE 7/X.32 (cont.)
  570.                    Description of state transitions in terms of a V-series modem interface
  571.                                              Transition name                 
  572.                         Pr          Event                  Action               New state
  573.                         es  
  574.                         en  
  575.                         t   
  576.                         st  
  577.                         at  
  578.                          e   
  579.                          3            Disconnect receiving DTE/DCE                   0
  580.                         Ha    LAPB has entered a      Turn circuit 107       Idle state
  581.                         lf-  disconnected phase      OFF.                    
  582.                         du   
  583.                         pl   
  584.                         ex   
  585.                         re   
  586.                         ce   
  587.                         iv   
  588.                         in   
  589.                         g    
  590.                         st   
  591.                         at   
  592.                         e    
  593.                          4                  Send confirmation                         1
  594.                         Wa    Circuit 106 ON          Enable sending of      Half-duplex sending 
  595.                         it                           LAPB frames (see Note   state
  596.                         fo                           6).                     
  597.                         r    
  598.                         se   
  599.                         nd   
  600.                         in   
  601.                         g    
  602.                         st   
  603.                         at   
  604.                         e    
  605.                         An                Reset from any state                       0
  606.                         y    
  607.                               Circuit 107 OFF         Inhibit sending of     Idle state
  608.                                                      LAPB frames. (Turn      
  609.                                                      circuit 105 OFF.)       
  610.           Note 1 - The HDTM may determine that a transmission by the LAPB module has been concluded
  611.          by either of the following:
  612.          -       counting a sequence of continuous flags on circuit 103 while in state 1;
  613.          -       a time-out;
  614.          -       a signal from another source, e.g. from a higher level.
  615.          However, if no frame is transmitted while in state 1, not less than five continuous  flags
  616.          shall be sent in state 1 before entry into state 2.
  617.          Note 2 - It is recommended that circuit 105 not be turned OFF until 15 bit times after the
  618.          binary 1 condition is established on circuit 103. This will assure transmission of an idle
  619.          sequence to the remote DTE/DCE.
  620.          Note 3 - It is understood that circuit 109 will go ON. Entry into state 3 may be dependent
  621.          on this condition as an implementation option.
  622.          Note 4 - It is recognized that whether or not an idle channel state condition sequence  is
  623.          sent by the remote DTE/DCE, the DTE/DCE will detect an idle channel state condition  after
  624.          circuit 109 goes OFF, since according to  Recommendation  V.24,  S  4.3,  this  will  hold
  625.          circuit 104 in the binary 1 condition.
  626.          Note 5 - It is understood that circuit 109 will go OFF. Entry into state  4  may  be  made
  627.          dependent on this OFF condition as an implementation option.
  628.          Note 6 - It is necessary to ensure that at  least  one  full  flag  is  transmitted  after
  629.          circuit 106 comes ON. This flag may be the opening flag of the first frame.
  630.          5.6.9  Turnaround checkpoint retransmission
  631.                In order to improve  the  efficiency  of  the  LAPB  procedure  when  using
  632.          half-duplex circuits, it is highly recommended that an  additional  mechanism  be
  633.          implemented. It is called "turnaround checkpoint retransmission" and is described
  634.  
  635.  
  636.  
  637.  
  638.                                                        Fascicle VIII.2 - Rec. X.32   PAGE1
  639.  
  640.          as follows:
  641.                -   before a DTE/DCE gives the turn back (i.e. goes from state 1 to state 2 
  642.                   of Figure 11/X.32), it acknowledges all frames that were  received  and
  643.                   accepted during the time it  was  in  state  3  (Half-duplex  receiving
  644.                   state) before it got the turn;
  645.                -   if a DTE/DCE gets the turn (i.e. transition from state 3 to state 4) or 
  646.                   takes the turn (i.e. transition from state  2  to  state  4  of  Figure
  647.                   11/X.32) then this DTE/DCE will first retransmit all I-frames that have
  648.                   not been acknowledged.
  649.          5.6.10 Interworking with  a  DTE/DCE  without  turnaround  checkpoint  additional
  650.                procedures
  651.                The above procedure  allows  for  interworking  between  a  DTE/DCE  having
  652.          implemented the above additional mechanisms and a DCE/DTE not having  implemented
  653.          them.
  654.                In order to improve the efficiency of the procedure in such a case:
  655.                -   a DTE/DCE having implemented the turnaround checkpoint  retransmission
  656.                   is advised to replace the last RR frame of the  transmit  sequence,  if
  657.                   any, by a REJ frame carrying the appropriate N(R).
  658.                -   a DTE/DCE not having implemented turnaround checkpoint  retransmission
  659.                   nevertheless acknowledges during a turn  all  frames  which  have  been
  660.                   correctly received during the previous turn.
  661.          6      Packet layer
  662.          6.1    Scope and field of application
  663.                The formats and the procedures at the packet layer shall be  in  accordance
  664.          with SS 3, 4, 5, 6 and 7 of Recommendation X.25 with additions as noted  in  this
  665.          section and in S 7 of this Recommendation.
  666.                If  identification  and  authentication  are  done  at  the  packet  layer,
  667.          identification and authentication of the identity of both the DTE  and  DCE  will
  668.          cease to apply when a  failure  on  the  physical  layer  and/or  link  layer  is
  669.          detected.
  670.                Some DTEs  may  choose  to  use  the  registration  procedure  for  on-line
  671.          facility registration  immediately  after  the  switched  access  path  has  been
  672.          established and the link has been set up.
  673.          6.2    Use of registration packets for identification of DTE and/or DCE  and  for
  674.                conveyance of X.32 optional user facilities
  675.                The registration procedure can be used for DTE and  DCE  identification  at
  676.          the  packet  layer.  The  registration  request  packet   is   used   to   convey
  677.          identification protocol elements from  the  DTE  to  the  DCE.  The  registration
  678.          confirmation packet is used to convey identification protocol elements  from  the
  679.          DCE to the DTE.
  680.                When using registration packets for DCE  identification,  it  is  necessary
  681.          for the DTE to send a registration request packet in order to  give  the  DCE  an
  682.          opportunity to identify itself.
  683.                Whenever DCE identification is being done via the  registration  procedure,
  684.          a registration confirmation packet must be sent after the identification protocol
  685.          has been completed in order for the registration procedure to  be  completed.  If
  686.          the DCE identification was not successful, this packet may contain identification
  687.          protocol elements to begin the DCE identification procedure again, if allowed.
  688.                The identification protocol may be used  for  DTE  identification  and  DCE
  689.          identification at the same time. When this  occurs,  a  registration  packet  may
  690.          carry elements for both directions of identification simultaneously.
  691.                A DTE may specify X.32 optional user facilities in registration packets.
  692.                Descriptions of the identification protocol elements  and  X.32  facilities
  693.          are listed in S 7.2.
  694.                When the registration request or the registration  confirmation  packet  is
  695.          used for identification and/or the conveyance of X.32 optional  user  facilities,
  696.          the elements and/or facilities (see S 7.3) are carried in the registration field.
  697.                Registration packets may be used to perform identification,  conveyance  of
  698.          X.32 facilities, and on-line facilities negotiation in the same packets,  subject
  699.          to the restriction of S 7.1.2, below (see S 7.3 of Recommendation X.25).
  700.          6.3    Identification and authentication of  the  DTE  using  the  NUI  selection
  701.                facility in call set-up packets
  702.                The NUI selection facility in call set-up  packets  can  be  used  for  DTE
  703.          identification on a per virtual call basis. It can also be used  in  addition  to
  704.          one  of  the  prior-to-virtual-call  DTE   identification   methods.   This   NUI
  705.  
  706.  
  707.  
  708.  
  709.          PAGE18  Fascicle VIII.2 - Rec. X.32
  710.  
  711.          identification remains in effect for the lifetime of  the  virtual  call  and  is
  712.          independent of any previous NUI identification on the interface. Subsequent  call
  713.          requests on the switched access path will either revert to the prior DTE  service
  714.          on the interface or receive a DTE service associated with a NUI.
  715.                The NUI selection facility  parameter  may  contain  as  the  DTE  identity
  716.          either a user identifier plus a password assigned by the network to the  DTE,  or
  717.          only a password assigned by the network to the  DTE.  The  formats  of  the  user
  718.          identifier and the password are national matters. The  following  cases  describe
  719.          the operation of the NUI selection facility:
  720.                1)  When a DTE identity has been established using a prior-to-virtual-call
  721.                   DTE identification method, the NUI selection facility may  be  used  if
  722.                   the NUI subscription and/or the NUI override facilities are set by  the
  723.                   network. In this case, the NUI selection facility applies conforming to
  724.                   the procedures described in Recommendation X.25 (see S 6.21/X.25).
  725.                2)   When  a   DTE   identity   has   not   been   established   using   a
  726.                   prior-to-virtual-call  identification  method  and  the  NUI  selection
  727.                   facility is used, the identified DTE service (see S  3.4)  is  selected
  728.                   (when supported by the network). Two subcases are possible:
  729.                   a)  NUI override facility is set by the network  when  a  call  request
  730.                       packet containing a valid NUI is sent, the features  subscribed  to
  731.                       by the DTE identified by that NUI  and  associated  with  that  NUI
  732.                       apply to the virtual call;
  733.                   b)  NUI override facility is not set by the network when a call request
  734.                       packet  containing  a  valid  NUI  is  sent,   the   default   X.25
  735.                       subscription set applies to the virtual call.
  736.                In both cases a) and b), the NUI remains in effect only  for  the  lifetime
  737.          of the virtual call.
  738.          7      X.32 procedures, formats and facilities
  739.          7.1    Identification protocol
  740.          7.1.1  Protocol elements
  741.                The  identification  protocol  is   for   exchanging   identification   and
  742.          authentication information in one or more pairs  of  messages.  The  two  parties
  743.          involved in this protocol are called the questioning  party  and  the  challenged
  744.          party.
  745.                Two security options are defined: the basic option  described  as  security
  746.          grade 1 and an enhanced option described as security grade 2. The  identification
  747.          and authentication information are encoded in the following protocol elements:
  748.                a)  The identity element (ID) is a string of octets representing the DTE or 
  749.                   DCE identity (see SS 2.2.1 and 2.2.2, respectively) of  the  challenged
  750.                   party.
  751.                b)  The signature element (SIG) of the identity  is  a  string  of  octets
  752.                   associated with  the  identity  and  used  for  authentication  of  the
  753.                   identity. It is assigned for a period of time  by  the  authority  that
  754.                   assigns the identity and may be changed from time to time. For example,
  755.                   the SIG may be a password  or  the  result  of  an  encryption  process
  756.                   applied to the identity element (ID) of the challenged party.
  757.                c)  The random number element (RAND)  is  a  string  of  octets  which  is
  758.                   unpredictable for each identification exchange. It is used only in  the
  759.                   security grade 2 option.
  760.                d)  The signed response element (SRES) of the challenged party is the reply 
  761.                   to the RAND protocol element by the questioning party. It is used  only
  762.                   in the security grade 2 option.
  763.                e)  The diagnostic element (DIAG) is  the  result  of  the  identification
  764.                   process and is transmitted by the questioning party at the end  of  the
  765.                   process.
  766.                The format of these elements is shown in S 7.3.
  767.                The sizes of values of the identity, signature and random  number  elements
  768.          are a national matter and depend on a number of factors including:
  769.                a)  whether the authentication is of DTE identity or DCE identity,
  770.                b)  the grade of security,
  771.                c)  the method of identification,
  772.                d)  the possibilities of future improvements in computational  techniques,
  773.                   and
  774.                e)  whether the PSPDN directly assigns DTE identities or  adopts,  through
  775.                   pre-arrangement, the DTE identities assigned  by  the  PSN  or  another
  776.  
  777.  
  778.  
  779.  
  780.                                                        Fascicle VIII.2 - Rec. X.32   PAGE1
  781.  
  782.                authority.
  783.          7.1.2  Identification protocol procedure
  784.                The first message of a pair is transmitted by  the  challenged  party.  The
  785.          second message of the pair is transmitted  by  the  questioning  party.  Security
  786.          grade 1 provides a single exchange of elements ID  [,  SIG],  and  DIAG,  whereas
  787.          security grade 2 uses an additional exchange of RAND and SRES elements to provide
  788.          a greater degree of security.
  789.                Note - In both security grades 1 and 2, SIG may be omitted if not  required
  790.          by the questioning party. If it is not required, its presence is  not  considered
  791.          in error.
  792.                The identification protocol elements are  passed  between  the  parties  in
  793.          either a sequence of XID command frames or  registration  packets.  Networks  may
  794.          offer either or both methods of security exchange, but an  entire  identification
  795.          exchange must be done entirely with only one method.
  796.                The  identification  protocol  may   be   used   for   DTE   identification
  797.          simultaneously but independently of its use for  DCE  identification.  When  this
  798.          occurs, a registration packet or XID frame may carry elements for both directions
  799.          of identification simultaneously.
  800.                The identification established using the  identification  protocol  applies
  801.          for the duration  of  the  switched  access.  That  is,  once  the  DIAG  element
  802.          indicating acceptance of the DTE/DCE identity has been sent, the switched  access
  803.          path must be disconnected  before  another  attempt  to  use  the  identification
  804.          protocol to identify that challenged party can be made.
  805.                If the identification  protocol  is  not  successful,  that  is,  the  DIAG
  806.          element indicates refusal of the DTE/DCE identity, the questioning  party  should
  807.          disconnect the switched access path. In the case of security grade 1,  a  network
  808.          may allow up to three retries of the  identification  protocol  (i.e.,  the  DIAG
  809.          element indicates refusal of the DTE/DCE identity)  before  the  switched  access
  810.          path is disconnected when the network is  the  questioning  party.  For  security
  811.          grade 2, only one attempt to perform the  identification  protocol  is  permitted
  812.          when the network is the questioning party.
  813.                The actions of the DCE when acting as the challenged or  questioning  party
  814.          are further described by the state diagrams and tables in Annex A.
  815.                The  security  grade  applied  on  a  particular  switched  connection   is
  816.          determined by the subscription of the DTE with  the  Administration.  It  is  not
  817.          negotiable on a per call basis. Not all networks will offer both  security  grade
  818.          options. The use of certain optional features may be restricted to  a  particular
  819.          security grade. A positive and  secure  DTE  identification  is  limited  to  the
  820.          security of the  switched  access  path,  particularly  in  dial-out-by-the-PSPDN
  821.          operation.
  822.                In order to avoid situations in which both  parties  are  waiting  for  the
  823.          other to identify first, these principles will be followed:
  824.                a)  Each party should send its identity, if capable and  willing,  at  the
  825.                   earliest opportunity. However, the called party is not required to send
  826.                   its own identity before complete identification of the calling party.
  827.                b)  If the calling party does not send its identity, the called party has a 
  828.                   choice  of  operating  a  service  not  requiring   identification   or
  829.                   disconnecting the switched connection.
  830.                Security grade 1 involves a single pair of  messages  as  shown  in  Figure
  831.          12/X.32. First, the challenged party sends its identity (ID)  and,  if  required,
  832.          its signature (SIG). The questioning party responds with the diagnostic (DIAG).
  833.                                         FIGURE 12/X.32  - T0706550-88
  834.  
  835.                As shown in  Figure  13/X.32,  security  grade  2  involves  an  additional
  836.          authentication exchange if the initial response (ID [, SIG])  of  the  challenged
  837.          party is valid. If ID is an identity unknown to the questioning party or  if  the
  838.          SIG element is required by the questioning party but either it is not present  or
  839.          is inconsistent with the claimed identity, then an  error  diagnostic  (DIAG)  is
  840.          issued and the access path is disconnected. Otherwise, the questioning party will
  841.          generate and send a random number (RAND) which the challenged party will  encrypt
  842.          and return as its signed response (SRES). The questioning party will then decrypt
  843.          SRES and, if this operation results in a value identical to RAND, the appropriate
  844.          diagnostic (DIAG) is sent to the challenged party and the identification  process
  845.          is successfully completed. Otherwise, an error diagnostic (DIAG) is returned  and
  846.          the access path is disconnected.
  847.  
  848.  
  849.  
  850.  
  851.          PAGE18  Fascicle VIII.2 - Rec. X.32
  852.  
  853.                Note 1 - It is left for further study  whether  or  not  to  define,  as  a
  854.          mechanism for protecting against specific forms of intrusion, that the  value  of
  855.          RAND is odd or even depending on the direction of the switched access call.
  856.                Note 2 - If the network does not store the public keys  of  DTEs,  the  SIG
  857.          can be used to convey the public key and other information characteristics of the
  858.          DTE (e.g., indication of security level two is to be used). Private keys  of  the
  859.          DTE, if any, are not included in the SIG information. In  order  to  add  to  the
  860.          protection, this information can be encrypted via the private key of the network.
  861.                If   on-line   facility   registration   is   done   simultaneously    with
  862.          identification, the DTE shall do so  only  in  the  packet  containing  SRES.  If
  863.          on-line facility registration is attempted prior to SRES, it will be  refused  by
  864.          the network with a cause code value of local procedure error.
  865.                                         FIGURE 13/X.32  - T0706560-88
  866.  
  867.          7.1.3  Identification protocol formats
  868.                The formats for the identification protocol elements are defined in  S  7.3
  869.          of this Recommendation in accordance with SS 6 and 7 of Recommendation X.25.  The
  870.          elements are coded identically in registration packets and XID frames.
  871.          7.2    Procedures for X.32 optional user facilities
  872.          7.2.1  Secure dial-back facility
  873.                Networks    that    implement    both    the     dial-in-by-the-DTE     and
  874.          dial-out-by-the-PSPDN operations may provide, as an optional user facility agreed
  875.          for a period of time, a dial-back procedure. This  facility,  if  subscribed  to,
  876.          combines  the  dial-in-by-the-DTE  operation   with   the   dial-out-by-the-PSPDN
  877.          operation to offer additional protection when the identity  of  the  DTE  becomes
  878.          known to the network. This procedure allows, in the customized DTE service, a DTE
  879.          to  use  the  dial-in-by-the-DTE  operation,  identity  itself,  and  disconnect.
  880.          Security is achieved in using the identity element of the identification protocol
  881.          and a dial-out-by-the-PSPDN to the registered PSN number. The  network  uses  the
  882.          dial-out-by-the-PSPDN operation to dial back the DTE  using  the  registered  PSN
  883.          number. The DCE identifies itself and  the  DTE  identifies  itself  again.  Some
  884.          networks may offer the additional feature of  limiting  the  use  of  the  secure
  885.          dial-back facility to specific hours of operation of the DTE.
  886.                The grade of security for secure dial-back is not negotiable  per  switched
  887.          access call. It is one  aspect  of  the  identity  and  its  value  is  set  when
  888.          pre-registering to the authority that defines the identity.
  889.                After  the  DTE  has  correctly  identified  itself  to  the   DCE   during
  890.          dial-in-by-the-DTE, the DCE sends a  request  for  dial-back  confirmed  via  the
  891.          diagnostic element of the identification  protocol.  Then  the  DTE  and  network
  892.          should disconnect the link, if necessary, and then the switched  access  path  as
  893.          soon as possible. The network should then initiate the dial-back to  the  DTE  as
  894.          soon as possible by using dial-out-by-the-PSPDN.
  895.                If, during the dial-in-by-the-DTE operation,  the  DCE  is  aware  that  it
  896.          cannot perform the dial-back, the DCE will indicate to the DTE that dial-back  is
  897.          not possible. This  indication  is  given  via  the  diagnostic  element  of  the
  898.          identification protocol.
  899.                When   the   DCE   disconnects   the   switched   access   path   on    the
  900.          dial-in-by-the-DTE  it  starts  DCE  timer  T15.  The  DCE  then   attempts   the
  901.          dial-out-by-the-PSPDN operation as soon as possible. The period of timer T15,  at
  902.          the end of which the DCE abandons the attempt to dial out to the DTE, is a system
  903.          parameter agreed for a period of time with the Administration.
  904.                When the network dials out, the DCE includes a  "dial-back  indication"  to
  905.          the DTE via the diagnostic element of the identification protocol.
  906.                If the DTE receives an unsolicited dial-back from  the  DCE,  the  switched
  907.          access path may be disconnected.
  908.                Note - As some PSTN networks implement calling party  clear,  a  PSPDN  may
  909.          wish to restrict dial-back to an outgoing only PSTN port.
  910.          7.2.2  Temporary location facility
  911.                Temporary location is  an  optional  user  facility  that  applies  to  the
  912.          DTE/DCE interface for registered DTEs that accept dial-out calls from the PSPDN.
  913.                This facility can be used to substitute a different switched access  number
  914.          for dial-out-by-the-PSPDN to the DTE other than the registered  PSN  number.  The
  915.          switched access number specified is an X.121 number from the PSN numbering plan.
  916.                Note - Extension of a switched  access  number  to  accommodate  additional
  917.          digits, secondary digits, secondary dial tone, or dialling delays as  allowed  by
  918.  
  919.  
  920.  
  921.  
  922.                                                        Fascicle VIII.2 - Rec. X.32   PAGE1
  923.  
  924.           V.25 and/or X.24 is left for further study.
  925.                 In addition, a DTE may specify, by means of this facility, the  periods  of
  926.           time during which it may be reached at a valid number for the PSN.
  927.                 During those periods not identified by this facility, the  number  used  to
  928.           reach the DTE will be its registered PSN number.
  929.                 The substitute number goes into effect at the "stay  initiation"  data  and
  930.           time. The substitute number is no longer in effect at the "stay termination" date
  931.           and time.
  932.                 At the expiration of the time given in  the  temporary  location  facility,
  933.           the number used for dial-out-by-the-PSPDN reverts to the registered PSN number.
  934.                 Use of the temporary location facility by the called  DTE  will  not  cause
  935.           the called line address modified notification facility to be inserted in the Call
  936.           Connected packet. However, the called line address modified notification facility
  937.           will appear in the Call  Connected  packet  according  to  normal  conditions  of
  938.           Recommendation X.25.
  939.           7.3    Coding of the identification protocol elements and X.32 facilities
  940.           7.3.1  General
  941.                 The general principles for coding of the identification  protocol  elements
  942.           and X.32 facilities are the same as the ones specified for the registration field
  943.           in S 7.1 of Recommendation X.25. The statements of S 7.1 of  Recommendation  X.25
  944.           concerning facilities do not apply to this section. The statements of  S  7.1  of
  945.           Recommendation X.25 concerning registration elements apply to the  identification
  946.           protocol elements and X.32 facilities in this section.
  947.           7.3.2  Coding of the identification  protocol  element  and  X.32  facility  code
  948.                  fields
  949.                 Table 8/X.32 gives the list of  the  identification  protocol  element  and
  950.           X.32 facility codes, the coding for each, and,  where  applicable,  whether  this
  951.           code may be sent by the challenged or the questioning party.
  952.                                                 TABLEAU 8/X.32
  953.                             Identification protocol element and X.32 facility codes
  954.              Identification              May be sent by                  Bits
  955.                  element         
  956.             or facility code     challenged     questioning    8  7  6  5  4  3  2 
  957.                                      party          party               1
  958.            Identity element             X                        1  1  0  0  1  1  0  
  959.                                                                  0
  960.            Signature element            X                        1  1  0 0  1  1  0  
  961.                                                                  1
  962.            Random number                               X         1  1 0  0  1  1  1  
  963.           element                                                0
  964.            Signed response              X                        1  1  0  0  1  1  1  
  965.           element                                                1
  966.            Diagnostic element                          X        0  0  0  0  0  1  1  
  967.                                                                  1
  968.            Temporary location    
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.           PAGE18  Fascicle VIII.2 - Rec. X.32
  994.  
  995.                                                                  1  1  0  1 0  0  0  
  996.                                                                  0
  997.                  7.3.3  Coding of the identification protocol element and X.32 facility parameter 
  998.                  fields
  999.           7.3.3.1   Identity element
  1000.                 The octet following the code field indicates the length, in octets, of  the
  1001.           parameter field. The following octets contain the string of octets composing  the
  1002.           identity.
  1003.           7.3.3.2   Signature element
  1004.                 The octet following the code field indicates the length, in octets, of  the
  1005.           parameter field. The following octets contain the string of octets composing  the
  1006.           signature.
  1007.           7.3.3.3   Random number element
  1008.                 The octet following the code field indicates the length, in octets, of  the
  1009.           parameter field. The following octets contain the string of octets composing  the
  1010.           number which is the random number element. It is binary coded with bit 8  of  the
  1011.           first octet following the parameter length being the high order bit and bit 1  of
  1012.           the last octet being the low order bit. If the number of significant bits of  the
  1013.           random number is not octet-aligned, then zeroes precede the most significant  bit
  1014.           to make it octet-aligned.
  1015.           7.3.3.4   Signed response element
  1016.                 The octet following the code field indicates the length, in octets, of  the
  1017.           parameter field. The following octets contain the string of octets composing  the
  1018.           number which is the signed response. It is binary coded with bit 8 of  the  first
  1019.           octet following the facility parameter length being the high order bit and bit  1
  1020.           of the last octet being the low order bit. If the number of significant  bits  of
  1021.           the  signed  response  is  not  octet-aligned,  then  zeroes  precede  the   most
  1022.           significant bit to make it octet-aligned.
  1023.           7.3.3.5   Diagnostic element
  1024.                 The coding of the parameter field for the diagnostic element  is  shown  in
  1025.           Table 9/X.32.
  1026.                                                  TABLE 9/X.32
  1027.                            Coding of the parameter field for the diagnostic element
  1028.                                                                             Bits
  1029.                                                            8    7    6    5    4    3    2    1
  1030.           Identification/authentication confirmed          0     1    1    1    1    1    1     1
  1031.           Identification or authentication failed (Note               
  1032.           1)                                              
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.                                                         Fascicle VIII.2 - Rec. X.32   PAGE1
  1065.  
  1066.                                                                                                     
  1067.            - general                                       1     0    0    0    0     0    0     0
  1068.            - additional                                    1     X    X    X    X     X    X     X
  1069.            Network congestion (Note 2)                     0     0    0    0    0     1    0     1
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.           PAGE18  Fascicle VIII.2 - Rec. X.32
  1136.  
  1137.           Identification in use (Note 3)                   0     0    0     1    0     1    1     1
  1138.            Dial-back indication (Note 4)                   0     0    1     1    1     1    1     1
  1139.            Network congestion for dial-back (Note 4)       0     0    0     1    1     0    1     1
  1140.            Request for dial-back confirmed (Note 4)        0     0    0     1    1   
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.                                                         Fascicle VIII.2 - Rec. X.32   PAGE1
  1207.  
  1208.                                                                                          1    1     1
  1209.          Note 1 - Bits 7 to 1 are for maintenance purposes and  are  a  national  matter.  Complete
  1210.          specification and provision of this information to a user represents a possible compromise
  1211.          of security by providing details of authentication failure.
  1212.          Note 2 - Replacement of this call progress signal is for further study  in  close  liaison
  1213.          with the revision of Recommendation X.96.
  1214.          Note 3 - Whether multiple switched connections can be simultaneously active using the same
  1215.          DTE identity is for further study.
  1216.          Note 4 - Used only in conjunction with the secure dial-back facility (see S 7.2.1).
  1217.          7.3.3.6   Temporary location facility
  1218.                The octet following the code field indicates the length, in octets, of  the
  1219.          parameter field.
  1220.                The parameter  field  consists  of  one  or  more  instances  of  temporary
  1221.          location requested by the DTE.
  1222.                For each instance of temporary location, the first 5  octets  indicate  the
  1223.          date and time of the stay initiation. The next 5 octets  indicate  the  date  and
  1224.          time of the stay termination. The octet following the stay termination  indicates
  1225.          the number of semi-octets in the switched access number and  is  binary  encoded.
  1226.          The following octets contain the switched access number.
  1227.                Date and time of initiation/termination is a string of  10  decimal  digits
  1228.          expressing the coordinated universal time (UTC) and has the form  YYMMDDhhmm.  YY
  1229.          is the two low-order digits of the Christian era year, and MM, DD, hh, and mm are
  1230.          the month, day, hour, and minute, respectively. The 10  decimal  digits  are  BCD
  1231.          encoded in 5 octets with the first digit of the year encoded into bits 8 to 5  of
  1232.          the first octet and the last digit of the minute encoded into bits 4 to 1 of  the
  1233.          fifth octet.
  1234.                A value of all zeros for stay initiation will  indicate  the  DTE's  desire
  1235.          for immediate initiation.
  1236.                A value of all zeros for stay termination will indicate  the  DTE's  desire
  1237.          for the switched number to remain in effect until subsequent  replacement  (i.e.,
  1238.          permanently).
  1239.                Note - Some networks may only  permit  the  stay  termination  and/or  stay
  1240.          initiation fields to contain all zeros. In that case, the number of instances  of
  1241.          temporary location is limited to one.
  1242.                The switched access number is  coded  as  a  series  of  semi-octets.  Each
  1243.          semi-octet contains either a digit in binary coded decimal or a special value  in
  1244.          the range 1010-1111 binary.
  1245.                Note - The special values may be used to accommodate  the  capabilities  of
  1246.          V.25 and/or X.24, particularly in specifying secondary  dial  tone  and  dialling
  1247.          delays. Such use is left for further study.
  1248.                If the switched access number contains an odd number of semi-octets, it  is
  1249.          followed by a semi-octet containing zeros.
  1250.                A  switched  number  length  of  zero  will  indicate  that  the   DTE   is
  1251.          unavailable.
  1252.          7.4    Security grade 2 method
  1253.                The authentication method in security grade  2  provides  for  the  use  of
  1254.          encryption to prevent unauthorized access subject to the constraints of unit cost
  1255.          and computation time. One example of a  public  key  encryption  technique  which
  1256.          could be used for this purpose is given in Appendix II. The selection and use  of
  1257.          security grade 2 algorithms is a national matter.
  1258.                Note - Further study, in close  cooperation  with  ISO/TC  97/SC  20,  will
  1259.          define the characteristics and length constraints  of  the  various  numbers  and
  1260.          parameters to be used in security grade  2  algorithms.  The  definition  of  the
  1261.          parameters of an algorithm should strike a  balance  between  the  cost  and  the
  1262.          complexity of the algorithm, and the value of that which is protected.  The  goal
  1263.          is to make the cost of breaking the code exceed the cost of obtaining the network
  1264.          resources by authorized means.
  1265.          7.5    DCE timer T14
  1266.                The DCE may support a timer T14, the value of which should  be  made  known
  1267.          to the DTE.
  1268.                At the expiration of timer T14,  the  DCE  will  disconnect  the  link,  if
  1269.          connected, then the switched access path.
  1270.                Timer T14 is started whenever a switched access path is established.  Timer
  1271.          T14 is stopped when either the DTE identity is established or a  virtual  call(s)
  1272.          is established which is not to be charged to the local DTE. In the  latter  case,
  1273.  
  1274.  
  1275.  
  1276.  
  1277.          PAGE18  Fascicle VIII.2 - Rec. X.32
  1278.  
  1279.          timer T14 will be restarted when no assigned logical channels are active.
  1280.                The  relationships  of  timer  T14  to  the  different   methods   of   DTE
  1281.          identification are illustrated in Appendix III.
  1282.                The period of timer T14 shall be network dependent.
  1283.          7.6    DCE timer T15
  1284.                Timer T15 is used in conjunction with the secure dial-back facility (see  S
  1285.          7.2.1).
  1286.                The period of timer T15 is left for further study.
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.                                                        Fascicle VIII.2 - Rec. X.32   PAGE1
  1349.  
  1350.